build:
	mpicc -Wall -lmpi -c crawler.c -o crawler.o
	gcc -Wall -c crawler_lib.c -o crawler_lib.o
	gcc -Wall -c html_parser.c -o html_parser.o
	mpicc -Wall -lmpi crawler_lib.o crawler.o html_parser.o  -o crawler

clean:
	rm crawler.o crawler_lib.o crawler http* errors.txt log.txt

test:
	gcc -Wall test.c crawler_lib.c -o test
	
parser:
	gcc -Wall -c html_parser.c -o html_parser.o
	gcc -Wall -c parser_test.c -o parser_test.o
	gcc -Wall  parser_test.o html_parser.o -o parser

clean_test:
	rm test
